package com.livew.framework.base.service;

import java.util.List;
import java.util.Map;

import com.livew.framework.base.model.FileEO;
import com.livew.framework.exception.XTBusinessException;

public interface FileService extends BaseService<FileEO> {
	
	void saveFiles(List<FileEO> files) throws XTBusinessException;

	void updateBySrcName(FileEO file) throws XTBusinessException;

	void delBySrcName(FileEO file) throws XTBusinessException;

	Map<Long, List<FileEO>> getListToMap(List<Long> caseIds, String caseClazz, String type);
	
	List<FileEO> getList(List<Long> caseIds, String caseClazz, String type);

	/**
	 * 取caseId中的第一条
	 * @param caseIds
	 * @param caseClazz
	 * @param type
	 * @return
	 */
	Map<Long,FileEO> getMapTopOne(List<Long> caseIds, String caseClazz, String type);

}
